from selenium.webdriver.common.by import By
from common.base import Base


class RegisterSuccessPage(Base):
    # 注册成功之后用户名文本定位
    def search_username(self):
        return self.find_element_text((By.CLASS_NAME, 'f4_b'))

    # 注册成功之后退出注册
    def register_out(self):
        self.click((By.XPATH, '//font[@id="ECS_MEMBERZONE"]/font/a[2]'))
